<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=`, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>版本历史</title>
  <style>
    body,html{
      background:#e0e0e0;
    }
    .version_item{
      max-width:640px;margin:10px auto;padding:10px;border-radius: 5px;
      background:#fff;box-shadow: 0 0 2px #b9b9b9;transition: all 0.5s;
    }
    .version_item .title{
      margin:0;font-size: 20px;margin-bottom: 5px;line-height: 25px;
    }
    .version_item .title span{
      color:#666;font-size: 14px;line-height: 14px;vertical-align: middle;
      position: relative;top:-1px;
    }
    .version_item .list{
      margin:5px 0;
    }
    .version_item .list ul{
      margin:0;
    }
    .version_item:hover{
      box-shadow: 0 0 20px #8b8b8b;
    }
  </style>
</head>
<body>
    <center style="font-size: 24px;">
      {% if type == '1002' %}
        电脑端版本更新日志
      {% elif type == '1003' %}
        其他版本更新日志
      {% elif type == '1005' %}
        Android版本更新日志
      {% elif type == '1006' %}
        iOS版本更新日志
      {% else %}
        参数错误
      {% endif %}
    </center>
    {% if list.length !== 0 %}
      {% for item in list %}
        <div class="version_item">
          <h1 class="title">版本：V{{item.version}}&emsp;<span>({{item.time}})</span></h1>
          <div class="list">
            <b>添加功能</b>
            <ul>
                {% for fun in item.addfun %}
                  <li>{{fun}}</li>
                {% endfor %}
            </ul>
          </div>
          <div class="list">
            <b>修复功能</b>
            <ul>
                {% for fun in item.debug %}
                  <li>{{fun}}</li>
                {% endfor %}
            </ul>
          </div>
          <div class="list">
            <b>安装包下载</b>
            <ul>
                {% for key, value in item.files %}
                  {% if key === 'ia32' %}
                  <li><a href="/getOssFile/?objname={{value}}">win32位下载</a></li>
                  {% elif key == 'x64' %}
                  <li><a href="/getOssFile/?objname={{value}}">win64位下载</a></li>
                  {% endif %}
                {% endfor %}
            </ul>
          </div>
        </div>
      {% endfor %}
    {% else %}
      没有版本
    {% endif %}
    <script>
      var dd = new.Date(item.time)
    </script>
</body>
</html>